package factory.entity;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/11/27  18:40
 */
public abstract class Operation {
    public abstract double operation(double num1, double num2);

    //加法
    public void add(){
        System.out.println("+");
    }
    //减法
    public void sub(){
        System.out.println("-");
    }
    //乘法
    public void mul(){
        System.out.println("*");
    }
    //除法
    public void div(){
        System.out.println("/");
    }
}
